package com.ct.application.sysuser.request;


import com.ct.application.commons.validator.valid.IsMobile;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysUserSaveRequest {
    @NotBlank(message = "用户名不能为空")
    // 用户名
    private String username;
    @NotBlank(message = "账号不能为空")
    // 账号
    private String account;
    @NotBlank(message = "密码不能为空")
    // 密码
    private String password;
    // 头像
    private String avatar;
    // 手机
    @IsMobile
    private String phone;
    // 邮箱
    @Email(message = "请输入正确的邮箱")
    private String email;
    // 发布状态 0未发布 1发布
    private Integer status;
    // 是否管理员 admin/normal
    private String admin;
    // 绑定的角色IDS
    private String roleIds;
}
